﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Howork
{
    public partial class BookRoom : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int room_id = int.Parse(Request["id"]);
            string begin = Request["begin"];
            string end = Request["end"];
            string user_id = Request["userid"];
            DateTime begin_time = DateTime.Parse(begin);
            DateTime end_time = DateTime.Parse(end);
            RoomArrange arranger = new RoomArrange();
            arranger.ArrangeRoom(begin_time,end_time,room_id,user_id);
            Response.Write("预订房间" + room_id + "成功!");
            Response.End();
        }
    }
}